import { storage } from '@/plugins/storage';

export const getBackHomeUrl = () => {
  return storage.get('backHomeUrl');
};

export const setBackHomeUrl = (query) => {
  const { backHomeUrl } = query;
  if (backHomeUrl) {
    storage.set('backHomeUrl', backHomeUrl);
  }
};

export const clearBackHomeUrl = () => {
  storage.remove('backHomeUrl');
};
